<?php 
if(isset($_SESSION['username'])) {
    header("Location: control_panel.php");
} 
?>
    <!DOCTYPE html>

<html>
	<head>
	    <meta charset="utf-8">
		
		<!-- Font weight: light (300) & semibold (600) -->
		<link href='http://fonts.googleapis.com/css?family=Open+Sans:600,300' rel='stylesheet' type='text/css'>
		<link rel="stylesheet" href="css/default.css"/>
                
                <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui-1.10.2.custom.min.js"></script>
		<script type="text/javascript" src="js/actions.js"></script>
                
		<title>Scrum | Login</title>		
	</head>
	
	<body>
	
		<h1>Scrum</h1>
		
		<section id="loginSection">
		
			<h2>login<span>User</span></h2>
                        
			<div class="bracket">
                                <p class="alert_string hidden">Wrong username or password!</p>
				<form id="login_form" method="post">
					<input type="text" name="username" placeholder="username" autofocus required="required" /> <br/>
					<input type="password" name="password" placeholder="password" required="required" />
					<input id="login_submit" type="submit" name="submit" value="login" formaction="./php/loginUser.php" />
				</form>
			</div>
		
		</section>
		
	</body>
</html>